s=input()
a=""

for i in range(len(s)):
    a=s[i]+a
print(a)
    